//
//  MqInfoAuthDetailHeadView.m
//  Meiqi
//
//  Created by 王郑 on 16/1/19.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "MqInfoAuthDetailHeadView.h"

@implementation MqInfoAuthDetailHeadView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat width = frame.size.width;
        CGFloat height = frame.size.height;
        
        _headImageV = [[UIImageView alloc] initWithFrame:CGRectMake((kScreenWidth - height / 2) / 2 , 20 *kHeightBase ,height / 2, height / 2 )];
       // _headImageV.backgroundColor = [UIColor redColor];
        _headImageV.layer.cornerRadius = height / 4;
        _headImageV.layer.masksToBounds = YES;
        [self addSubview:_headImageV];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_headImageV.left, _headImageV.bottom, _headImageV.width, height / 8)];
       // _nameLabel.backgroundColor = [UIColor yellowColor];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_nameLabel];
        
        _positionLabel = [[UILabel alloc] initWithFrame:CGRectMake( width / 4, _nameLabel.bottom, width / 2, _nameLabel.height)];
      //  _positionLabel.backgroundColor = [UIColor greenColor];
        _positionLabel.textAlignment = NSTextAlignmentCenter;
        _positionLabel.textColor = [UIColor grayColor];
        [self addSubview:_positionLabel];
        
        
        
    }
    
    return self;
    
}





@end
